<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>循环语句</title>
</head>
<body>
    <script>
        for(var i = 1;i<=10;i++){
            console.log(i)
        }
        
        i = 1
        while(i <= 9){
            var j = 1
            while(j <= i){
                console.log(i*j)
            j++
            }i++
        }


        i = 1
        while(i <= 9){
            var j = 1
            while(j <= i){
                document.write( j + '*' + i + '=' + j*i + ' ')
            j++

            }
            document.write('<br>')
            i++
        }

    </script>
</body>
</html>
